package net.zjitc.service.impl;

import net.zjitc.mapper.OrderItemMapper;
import net.zjitc.pojo.Orderitem;
import net.zjitc.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/28 11:01
 */
@Service
@Transactional
public class OrderItemServiceImpl implements OrderItemService {
    @Autowired
    OrderItemMapper orderItemMapper;

    @Override
    public List<Orderitem> findByOId(String id) {
        return orderItemMapper.findByOId(id);
    }

    @Override
    public void add(Orderitem orderItem) {
        orderItemMapper.add(orderItem);
    }



}
